package de.baam;

import java.io.File;
import java.util.Arrays;
import java.util.List;

import javax.swing.filechooser.FileSystemView;

/**
 * Hello world!
 * 
 */
public class App {

	public static void main(String[] args) {
		
		String externName = "Externe 3.0";
		String driveLetter = "";
		String fileName = "";
		List<File> files = Arrays.asList(File.listRoots());
		ExternReader externReader;
		
		for (File file : files) {
			String driveName = FileSystemView.getFileSystemView()
					.getSystemDisplayName(file);
			if(driveName.contains(externName)) {
				System.out.println("getSystemDisplayName : " + driveName);
				System.out.println("EXTERNE!");
				externReader = new ExternReader();
				driveLetter = externReader.readDriveLetter(driveName);
				fileName = externReader.readTxtInfo(driveLetter);
			}
		}
	}
}
